<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>添加模板配置</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../component/elementUI/index.css">
  <link rel="stylesheet" href="../../../style/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :model="form" ref="contract" :rules="rules" inline-message="true" style="width: 100%">
      <div class="table_titel">
        <div class="titel">增加模板配置</div>
      </div>
      <el-descriptions :column="1" border size="small">
        <el-descriptions-item label="合同模板名称">
          <el-form-item prop="Contract_Table_Name">
            <el-input v-model.trim="form.Contract_Table_Name" placeholder="请输入合同模板名称"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="上传合同模板">
          <el-form-item prop="Contract_Template_URL">
            <!-- <el-upload ref="upload" class="upload-demo" :headers="headers" accept=".pdf" :data="Data"  
              :file-list="fileList" :on-preview="handlePreview" multiple
              :on-success="handleSuccess" :on-error="handleError" :on-change="handleChange"
              :auto-upload="false" drag :action="BASE_URL + '/contract/convert'" multiple>
              <i class="el-icon-upload"></i>
              <div class="el-upload__text">
                将文件拖到此处，或<em>点击上传</em><br>
                <span style="font-size: 10px;color: #c7c5c5;">只能支持.pdf文件</span>
              </div>
            </el-upload> -->
            <el-upload ref="upload" class="upload-demo" accept=".docx" :limit="limit" multiple drag action=""
              :on-exceed="handleExceed" :file-list="fileList" :on-change="handleChange"
              :auto-upload="false">
              <i class="el-icon-upload"></i>
              <div class="el-upload__text">
                将文件拖到此处，或<em>点击上传</em><br>
                <span style="font-size: 10px;color: #c7c5c5;">只能支持.docx文件</span>
              </div>
            </el-upload>
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>
      <el-form-item class="form-operation">
        <el-button @click="window.history.back()">返回</el-button>
        <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
  <script type="text/javascript" src="../../../utils/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../utils/vue.min.js"></script>
  <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
  <script type="text/javascript" src="../../../utils/utils.js"></script>
  <script type="text/javascript" src="../../../utils/ID_Validity.js"></script>
  <script type="text/javascript" src="../../../utils/FileSaver.min.js"></script>
  <script type="text/javascript" src="../../../utils/FileSaver.js"></script>
  <script type="text/javascript" src="../../../utils/xlsx.full.min.js"></script>
  <script type="text/javascript" src="../../../utils/compressor.js"></script>
  <script type="text/javascript" src="./js/Add.js"></script>
</body>

</html>